namespace nDeveloper.VSS.DifferenceEngine
{
    using System;

    internal class DiffStateList
    {
        private DiffState[] _array;

        public DiffStateList(int destCount)
        {
            this._array = new DiffState[destCount];
        }

        public DiffState GetByIndex(int index)
        {
            DiffState state = this._array[index];
            if (state == null)
            {
                state = new DiffState();
                this._array[index] = state;
            }
            return state;
        }
    }
}

